package com.tianma.springcloud;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lgc
 * @createDate 2020/9/1 - 11:29
 */
@RestController
public class controller {

    @Value("${spring.application.name}")
    String applicationName;
    @GetMapping("/getName")
    public String getApplicationName(){
        return applicationName;
    }
}
